package com.maiworld.seller.service;

import java.util.List;
import java.util.Map;

import com.maiworld.pojo.TbNewtable;

import entity.PageResult;

public interface NewtableService {

	
	public List<TbNewtable> findAll();
	
	public PageResult findPage(int pageNum, int pageSize );
	
	public void  add(TbNewtable tbNewtable);
	
	public void update(TbNewtable tbNewtable);
	
	public TbNewtable findOne(Long id);
	
	public void delete(Long[] ids);
	
	public PageResult findPageNewtable(TbNewtable tbNewtable,int pageNum, int pageSize);
	
	  TbNewtable selectByPrimaryKey(Long id);
	
	public Map<String, Object> findAll( String status, String type);
	
	public Map<String, Object> findOne(Long sid, String status, Long id,String type);
	
	//public Map<String, Object> addNewtable(Map<String,String> params,Long sid);
	
	//获取首页信息包括：轮播图、驾校简介、班型介绍	
	public Map<String, Object>  HomePageInformation(String status, String openid, Long sid);
	
	public Map<String, Object> findOneNewsId(Long id);
	
}
